<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Module: Sass::Script</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (S)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span>
     &raquo; 
    <span class="title">Script</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Module: Sass::Script 
  
  
</h1>

<dl class="box">
  
  
    
  
    
  
  
    <dt class="r1 last">Defined in:</dt>
    <dd class="r1 last">/var/www/sass-pages/.sass/lib/sass/script.rb<span class="defines">,<br />
  /var/www/sass-pages/.sass/lib/sass/script/list.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/node.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/bool.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/null.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/color.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/lexer.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/string.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/parser.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/number.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/literal.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/funcall.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/variable.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/arg_list.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/css_lexer.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/operation.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/functions.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/css_parser.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/interpolation.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/unary_operation.rb,<br /> /var/www/sass-pages/.sass/lib/sass/script/string_interpolation.rb</span>
</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>SassScript is code that&#8217;s embedded in Sass documents to allow for property values to be computed from variables.</p>

<p>This module contains code that handles the parsing and evaluation of SassScript.</p>

  </div>
</div>
<div class="tags">
  
</div><h2>Defined Under Namespace</h2>
<p class="children">
   
    
      <strong class="modules">Modules:</strong> <a href="Functions.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html" title="Sass::Script::Functions (module)">Functions</a>
    
   
    
      <strong class="classes">Classes:</strong> <a href="ArgList.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/ArgList.html" title="Sass::Script::ArgList (class)">ArgList</a>, <a href="Bool.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Bool.html" title="Sass::Script::Bool (class)">Bool</a>, <a href="Color.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Color.html" title="Sass::Script::Color (class)">Color</a>, <a href="CssLexer.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/CssLexer.html" title="Sass::Script::CssLexer (class)">CssLexer</a>, <a href="CssParser.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/CssParser.html" title="Sass::Script::CssParser (class)">CssParser</a>, <a href="Funcall.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Funcall.html" title="Sass::Script::Funcall (class)">Funcall</a>, <a href="Interpolation.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Interpolation.html" title="Sass::Script::Interpolation (class)">Interpolation</a>, <a href="Lexer.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Lexer.html" title="Sass::Script::Lexer (class)">Lexer</a>, <a href="List.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/List.html" title="Sass::Script::List (class)">List</a>, <a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Literal</a>, <a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Node</a>, <a href="Null.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Null.html" title="Sass::Script::Null (class)">Null</a>, <a href="Number.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Number.html" title="Sass::Script::Number (class)">Number</a>, <a href="Operation.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Operation.html" title="Sass::Script::Operation (class)">Operation</a>, <a href="Parser.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Parser.html" title="Sass::Script::Parser (class)">Parser</a>, <a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">String</a>, <a href="StringInterpolation.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/StringInterpolation.html" title="Sass::Script::StringInterpolation (class)">StringInterpolation</a>, <a href="UnaryOperation.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/UnaryOperation.html" title="Sass::Script::UnaryOperation (class)">UnaryOperation</a>, <a href="Variable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Variable.html" title="Sass::Script::Variable (class)">Variable</a>
    
  
</p>

  <h2>Constant Summary</h2>
  



  <h2>Class Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#parse-class_method" title="parse (class method)">+ (Script::Node) <strong>parse</strong>(value, line, offset, options = {}) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Parses a string of SassScript.</span>
  
</li>

    
  </ul>


  <div id="class_method_details" class="method_details_list">
    <h2>Class Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="parse-class_method">
  
    + (<tt><a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Script::Node</a></tt>) <strong>parse</strong>(value, line, offset, options = {}) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Parses a string of SassScript</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="String.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/String.html" title="Sass::Script::String (class)">String</a></tt>)</span>
      
      
        <span class='name'>value</span>
      
      
      
        &mdash;
        The SassScript
      
    </li>
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
        <span class='name'>line</span>
      
      
      
        &mdash;
        The number of the line on which the SassScript appeared. Used for error reporting
      
    </li>
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
        <span class='name'>offset</span>
      
      
      
        &mdash;
        The number of characters in on <code>line</code> that the SassScript started. Used for error reporting
      
    </li>
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>options</span>
      
      
        <em class="default">(defaults to: <tt>{}</tt>)</em>
      
      
        &mdash;
        An options hash; see <a href="file.SASS_REFERENCE.html#sass_options" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#sass_options" title="the Sass options documentation">the Sass options documentation</a>
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Node-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Node.html" title="Sass::Script::Node (class)">Script::Node</a></tt>)</span>
      
      
      
      
        &mdash;
        The root node of the parse tree
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


30
31
32
33
34
35
36</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/script.rb', line 30</span>

def self.parse(value, line, offset, options = {})
  Parser.parse(value, line, offset, options)
rescue Sass::SyntaxError => e
  e.message << ": #{value.inspect}." if e.message == "SassScript error"
  e.modify_backtrace(:line => line, :filename => options[:filename])
  raise e
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:56 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>